<template>
	<view>
		<view class="image-content">
			<image style="width: 200px; height: 200px; background-color: #eeeeee;" mode="widthFix" :src="src"
				@error="imageError"></image>
		</view>
	</view>
</template>

<script setup>
	import {ref}from 'vue'
	const src =ref('https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg2.jpeg') 
	const imageError=(e)=>{
		console.log(e);
		return 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
	}
</script>

<style>

</style>